import { request } from './request'


export function PageList(params) {
    return request().get('/product/pagelist', { params })
}

export function Save(data) {
    if (data.id > 0) {
        return request().put('/product', data)
    }
    else return request().post('/product', data)
}

export function GetProduct(id) {
    return request().get('/product/' + id)
}

export function DeleteProduct(id) {
    return request().delete('/product/' + id)
}

